]> dgit.raspbian.org Git - gnome-shell.git/commit
ibusManager: Make more resilient to completion/engine independent changes
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 17 Oct 2022 13:55:11 +0000 (15:55 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 26 Oct 2022 10:00:37 +0000 (10:00 +0000)
commit12032dcc50e108e984fe4d689e8d372d0eb1d5ff
treedb7a84d3619b2726632d01ced0ae9cbe0a194330
parentb2f2266199e0fc0e2d89a9a2e05d7b740dabfe6a
ibusManager: Make more resilient to completion/engine independent changes

Besides user interaction, there's two users of IBusManager.setEngine():

- The code that toggles all IBus engines off on entries with PASSWORD
  purpose.
- The code that toggles completion support on OSK presence.

These are currently pretty oblivious to each other. Make this
interaction more resilient by making all external IBusManager changes
more cautious about directly changing the engine, and revoke properly
the completion mode if it needs be (e.g. changing to a non-XKB engine).

But another notable change is that ibus-typing-booster is now preferred
always, over PASSWORD purpose hints. This is done to avoid possible
doubled attempts to change the current engine (and ensuing IBusInputContext
confusion).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2512>
js/misc/ibusManager.js